Skip to content

Automatically fetch Zenodo assets (profsea-assets) when initializing spatial components - #104

Merged
Greg Munday (gregrmunday) merged 4 commits into
profsea-v3from
ra/profsea-assets
Sep 25, 2026
Merged

Greg Munday (gregrmunday) merged 4 commits into
profsea-v3from
ra/profsea-assets

Conversation

@richard17a

Copy link
Copy Markdown
Collaborator

Addresses the error outlined in issue #82.

Summary

Addresses a FileNotFoundError raised when creating spatial components (e.g. GIA) before the required fingerprint assets have been downloaded.

To avoid copying the fetch_zenodo_fingerprints‎ method in each spatial component class, asset fetching has been moved into the SpatialComponent base class (SpatialComponent.fetch_assets()).

Added/updated tests to verify that the Zenodo assets are fetched when instantiating any of:

  • SpatialComponent
  • GIA
  • Fingerprint
  • Sterodynamic

@gregrmunday Greg Munday (gregrmunday) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me, nice one!

@gregrmunday
Greg Munday (gregrmunday) merged commit f2ea286 into profsea-v3 Sep 25, 2026
2 checks passed
@richard17a
Richard Anslow (richard17a) deleted the ra/profsea-assets branch September 25, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants